package com.qzxy.premiumhotelsystem.domain.pojo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 李佳添
 * @version 1.0
 * @description 邮箱对象类
 * @date 2024/9/16 20:09 周一
 */
@Data
@Schema(name = "Mail",description = "邮箱对象")
public class Mail implements Serializable {
    @Schema(name = "接收人",requiredMode = Schema.RequiredMode.REQUIRED)
    private String sendTo; // 接收人 => 只需要这里修改即可

    @Schema(name = "发送人",requiredMode = Schema.RequiredMode.REQUIRED)
    private String from;  // 发送人

    @Schema(name = "邮件主题",requiredMode = Schema.RequiredMode.REQUIRED)
    private String subject; // 邮件主题

    @Schema(name = "邮件内容",requiredMode = Schema.RequiredMode.REQUIRED)
    private String text;// 邮件内容

    @Schema(name = "附件路径",requiredMode = Schema.RequiredMode.REQUIRED)
    private String filePath; // 附件路径

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
}
